const state = {
  userInfo: {}
}

const mutations = {
  SET_USERINFO: (state, userInfo) => {
    state.userInfo = userInfo
  },
}

const actions = {
  // 获取用户信息
  /* getInfo({ commit, state }) {
    return new Promise((resolve) => {
      const userInfo = state.userInfo
      const { rules } = userInfo
      commit('SET_RULES', rules)
      resolve(userInfo)
    })
  },*/
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
